package sample.innerCls;

public class Parcel7 {
	public Dest dest(final String dest, final float price) {
		return new Dest() {
			private int cost;
			
			//initialize the module
			{
				cost = Math.round(price);
				if (cost > 100) {
					System.out.println("Over budge!");
				}
			}

			private String label = dest;

			@Override
			public String ReadLabel() {
				return this.label;
			}
		};
	}
	
	public static void main(String[]args){
		Parcel7 p=new Parcel7();
		Dest d=p.dest("Anqing", 101.395F);//what's the meaning of 'F'?
	}

}
